//
//  LoadBundle.swift
//  RN
//
//  Created by HFY on 2021/1/28.
//

import Foundation
import React

class LoadBundle:NSObject,RCTBridgeDelegate {
    func sourceURL(for bridge: RCTBridge!) -> URL! {
        return url
    }
        
    static let shared = LoadBundle()
    var bridge:RCTBridge?
    var url:URL!
    override init() {
        super.init()
        url = Bundle.main.url(forResource: "platform.ios", withExtension: "bundle")!
        bridge = RCTBridge.init(delegate: self, launchOptions: nil)
    }
    
    
}
